<include file="Public:pagerForm" />
<script type="text/javascript">
function reload3() {
    navTab.reload("__URL__", {});
}
function carerdbltable(target,rel){
    if( target == 'sid_carrier'){
    $.pdialog.open("__URL__/read/id/"+rel+"/sid_carrier="+rel,"pdialogid", "查看", { max:false, mask:true, width: 550, height: 350});
    } 
  }
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="__URL__" method="post" rel="pagerForm">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>承运商名称：</label>
				<input type="text" name="carriername"  value="{$carriername}"class="medium">
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="550" height="350"><span>新增</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" rel="ids" postType="string" title="你确定要删除吗？" warn="请选择信息"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_carrier}" target="dialog" mask="true" warn="请选择节点" width="550" height="350"><span>修改</span></a></li>
			<li><a class="add" href="__URL__/readpay/id/{sid_carrier}" target="dialog" mask="true" warn="请选择节点"><span>查看付款信息</span></a></li>
			<li><a class="add" href="__URL__/pay/id/{sid_carrier}" target="dialog" mask="true"  rel="pay" resizable="false" warn="请选择节点"><span>结算</span></a></li>
		    <li><a class="add" href="__URL__/car/id/{sid_carrier}" target="navTab"  rel="car" mask="true"><span>租车信息</span></a></li>
		    <li><a class="add" href="__URL__/freight/id/{sid_carrier}" target="navTab"  rel="freight" mask="true"><span>运费价格输入</span></a></li>
		   <!-- 
		   <li><a class="icon" href="__URL__/export/carriername/{$carriername}" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		     -->
		    <li class="line">line</li>
			<li><a class="icon" href="#" onclick="reload3()"><span>刷新</span></a></li>
		</ul>
	</div>


	<table class="table" width="100%" layoutH="136">
		<thead>
		<tr>
		    <th width="25" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>	
			<th width="100" align="center">承运商名称</th>
			<th width="100" align="center">联系人</th>
			<th width="100" align="center">电话</th>
			<th width="100" align="center">传真</th>
			<th width="140" align="center">网址</th>
			<th width="140" align="center">邮箱</th>
			<th width="100" align="center">地址</th>
			<th width="100" align="center">邮编</th>
			<th width="100" align="center">开户银行</th>
			<th width="155" align="center">银行账户</th>
			<th width="100" align="center">备注</th>
			<th width="100" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_carrier" rel="{$vo['id']}" ondblclick="carerdbltable('sid_carrier',{$vo.id})">
			    <td><input type="checkbox" name="ids" value="{$vo['id']}" /></td>
				<!-- <td><a href="__URL__/index/id/{$vo['id']}/" target="navTab" rel="__MODULE__">{$vo['carriername']}</a></td> -->
				<td>{$vo['carriername']}</td>
				<td>{$vo['contactor']}</td>
				<td>{$vo['phone']}</td>
				<td>{$vo['fax']}</td>
				<td>{$vo['site']}</td>
				<td>{$vo['email']}</td>
				<td>{$vo['address']}</td>
				<td>{$vo['zip']}</td>
				<td>{$vo['openbank']}</td>
				<td>{$vo['account']}</td>
				<td>{$vo['notes']}</td>
				<td><a class="delete" href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
				|&nbsp;<a href="__URL__/edit/id/{$vo['id']}" target="dialog" mask="true" width="550" height="350">编辑</a></td>
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
		</div>
	</div>
</div>

